<?php
$file =fopen("log.txt","a+");
if($file){
    //打开文件
    fwrite($file,"hello file" . PHP_EOL);
    //关闭文件
    fclose($file);
} else {
    echo '打开文件失';
};

echo "success";